from flask import Flask,Blueprint
from flask_restful import Api
from comment.utils.output import output_json

#创建蓝图
letter_bp=Blueprint('letter',__name__,url_prefix='/notify')

#创建restful风格的api
letter_api=Api(letter_bp)

#将后端响应转化成json格式的数据给前端
letter_api.representation('application/json')(output_json)

from financial.resource.letter.letter_resource import *
#加载资源
letter_api.add_resource(Letter_Res,'/message',endpoint='message')